//
//  WJQBaseViewController.h
//  TripTogether
//
//  Created by dllo on 15/12/22.
//  Copyright © 2015年 王军岐. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void(^Block)(void);

@interface WJQBaseViewController : UIViewController

// 网络错误时调用
- (void)NetworkError:(Block)block;

- (void)MBShow;
- (void)MBHide;

- (void)createBackButton;

// 正则验证
- (BOOL)checkTel:(NSString *)str;

- (BOOL)checkPassword:(NSString *)passWord;
- (BOOL)checkUserName:(NSString *)nickname;

- (void)alertControllerWithTitle:(NSString *)title message:(NSString *)message;

- (void)alertControllerWithTitle:(NSString *)title message:(NSString *)message block:(Block)block;
@end
